package d8_commons_io;



import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

/**
 * 2024/6/20 使用CommonsIO 框架进行IO相关的操作
 */
public class CommonsIOTest1 {
    public static void main(String[] args) throws IOException {
/*        FileUtils.copyFile(new File("\\file-io2\\src\\test\\FileWriter.txt"),new File("\\file-io2\\src\\test\\b.txt"));
        FileUtils.copyDirectory(new File("D:\\Fialshell-命令图片"),new File("D:\\Fialshell-命令图片2"));
        FileUtils.deleteDirectory(new File("D:\\Fialshell-命令图片2"));*/

        //Files.copy(Path.of("file-io2\\src\\test\\FileWriter.txt"),Path.of("\\file-io2\\src\\test\\b.txt"));
       System.out.println(Files.readString(Path.of("file-io2\\src\\test\\FileWriter.txt")));
    }
}
